#include <iostream>
using namespace std;

static int x(int n)
{
    if (n <= 3)
        return 1;
    else
        return x(n - 2) + x(n - 4) + 1;
}

int main()
{
    int i;
    i = x(x(8));

    cout << x(8) << endl;
    cout << i << endl;
}
